Optimal. Leaf size=15 \[ -\frac{1}{2} a \csc ^2(x)-b \cot (x) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.043457, antiderivative size = 15, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.357, Rules used = {3089, 3767, 8, 2606, 30} \[ -\frac{1}{2} a \csc ^2(x)-b \cot (x) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3089
Rule 3767
Rule 8
Rule 2606
Rule 30
Rubi steps
\begin{align*} \int \csc ^3(x) (a \cos (x)+b \sin (x)) \, dx &=\int \left (b \csc ^2(x)+a \cot (x) \csc ^2(x)\right ) \, dx\\ &=a \int \cot (x) \csc ^2(x) \, dx+b \int \csc ^2(x) \, dx\\ &=-(a \operatorname{Subst}(\int x \, dx,x,\csc (x)))-b \operatorname{Subst}(\int 1 \, dx,x,\cot (x))\\ &=-b \cot (x)-\frac{1}{2} a \csc ^2(x)\\ \end{align*}
Mathematica [A] time = 0.0079179, size = 15, normalized size = 1. \[ -\frac{1}{2} a \csc ^2(x)-b \cot (x) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.041, size = 14, normalized size = 0.9 \begin{align*} -{\frac{a}{2\, \left ( \sin \left ( x \right ) \right ) ^{2}}}-b\cot \left ( x \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.18897, size = 20, normalized size = 1.33 \begin{align*} -\frac{b}{\tan \left (x\right )} - \frac{a}{2 \, \sin \left (x\right )^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.458895, size = 59, normalized size = 3.93 \begin{align*} \frac{2 \, b \cos \left (x\right ) \sin \left (x\right ) + a}{2 \,{\left (\cos \left (x\right )^{2} - 1\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 13.2413, size = 17, normalized size = 1.13 \begin{align*} - \frac{a}{2 \sin ^{2}{\left (x \right )}} - \frac{b \cos{\left (x \right )}}{\sin{\left (x \right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.11529, size = 18, normalized size = 1.2 \begin{align*} -\frac{2 \, b \tan \left (x\right ) + a}{2 \, \tan \left (x\right )^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]